<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    var str = '';
    for(var i = 1;i <= 5;i++){
        for(var o = i;o <= 5;o++){
            str = str + '☆';
        }
        str += '\n';
    }
    console.log(str);
</script>
<body>

</body>
</html>